<include file="public@header"/>
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">

			<li><a href="{:url('sit/index')}">场地</a></li>
			<li><a href="{:url('sit/addSite')}">添加</a></li>
			<li class="active"><a href="javascript:;">详情</a></li>
			<!-- 	<li class="active><a href="{:url('station/index')}">园区添加</a></li> -->
			<!-- <li ><a href="javascript:;">编辑分类</a></li> -->
		</ul>

		<form method="post" class="form-horizontal  margin-top-20" action="editSite">

			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">场地名<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="site_name" value="{$detail.site_name}" required="true">
				</div>
			</div>
		<!-- 	<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">状态</label>
				<div class="col-md-6 col-sm-10">
					<select readonly="readonly" class="form-control" name="status" id="parent_id">
						<option value="">==请选择==</option>
						<option value="0">禁用</option>
						<option value="1">可用</option>
						
					</select>
				</div>
			</div> -->
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">所属孵化器</label>
				<div class="col-md-6 col-sm-10">
					<select readonly="readonly" class="form-control" name="incubator_id" id="parent_id">
						<option value="">==请选择==</option>
						<volist name="incubator_list" id="vo">
							<option value="{$vo.id}" <if condition="$detail.incubator_id eq $vo.id">selected</if>>{$vo.incubator_name}</option>
						</volist>
						
						
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">类型</label>
				<div class="col-md-6 col-sm-10">
					<select readonly="readonly" class="form-control" name="site_type_id" id="parent_id">
						<option value="">==请选择==</option>
						<volist name="site_type" id="vo">
							<option value="{$vo.id}" <if condition="$detail.site_type_id eq $vo.id">selected</if>>{$vo.name}</option>
						</volist>
						
						
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">单价<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="price" value="{$detail.price}" required="true">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">电话<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="mobile" value="{$detail.mobile}" required="true">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">人数<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="people" value="{$detail.people}" required="true">
				</div>
			</div>

			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">开放开始时间<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="start_time" value="{$detail.start_time}" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">开放结束时间<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="end_time" value="{$detail.end_time}" >
				</div>
			</div>

			<!-- <div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">图片<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="pic" value="{$detail.pic}" required="true">
				</div>
			</div> -->
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">图片</label>
				<div class="col-md-6 col-sm-10">
					<imagetpl name="pic" id="img" value="$detail['pic']"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">简介<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="site_sketch" value="{$detail.site_sketch}" required="true">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">地址<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input readonly="readonly" class="form-control" type="text" name="address" value="{$detail.address}" required="true">
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required"></span>设备</label>
				<div class="col-md-6 col-sm-10">
					<foreach name="equipments" item="vo">
						<label class="checkbox-inline">
							<input value="{$vo.id}" type="checkbox" name="equipments[]" readonly="readonly">{$vo.name}
						</label>
					</foreach>
				</div>
			</div>
				<input readonly="readonly" type="hidden" name="id" value="{$detail.id}">
		</div>
			<!-- <div class="form-group">
				<label for="input-remark" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<label class="radio-inline js-icheck"><input readonly="readonly" type="radio" name="status" value="1" checked>显示</label>
					<label class="radio-inline js-icheck"><input readonly="readonly" type="radio" name="status" value="0" <if condition="1">checked</if>>隐藏</label>
				</div>
			</div> -->
			<!-- <div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-default" href="{:url('index',['type_id'=>1])}">{:lang('BACK')}</a>
				</div>
			</div> -->
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script type="text/javascript">
		$(function() {
			var equipments_checked=<?php echo $equipments_checked; ?>;
			$.each(equipments_checked,function(i,j){
				$("input[value="+j+"]").attr("checked",true);
			})
		});
	</script>
</body>
</html>